/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import { EntityRepository, Repository } from "typeorm";
import { PrizeEntity } from "../entity/PrizeEntity";

@EntityRepository(PrizeEntity)
export class PrizeRepository extends Repository<PrizeEntity> {
	
	queryByBingo(bingoId : string) {
		//let bid = bingoId;
		return this.find({
			where: {
				bid : bingoId
			},
			order : {
				pid : "DESC"
			}
		});
	}
	
}